package com.block.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.block.db.entity.LoginSession;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * 
 * @since 2021-02-27
 */
public interface LoginSessionMapper extends BaseMapper<LoginSession> {

    List<LoginSession> getByUidAndStatusAndTypes(@Param("uid") Long uid, @Param("status") String status);

    LoginSession getLoginSessionByUid(@Param("uid") Long uid);
}
